﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 图片查看
{
    public class ImgPath
    {
        public string path { get; set; }
        public ImgPath(string path)
        {
            this.path = path;
        }
        public List<string> GetImg()
        {
            List<string> paths = new List<string>();

            string[] pa = Directory.GetFiles(path, "*.jpg");
            for(var i = 0; i < pa.Length; i++)
            {
                paths.Add(pa[i]);
            }
            return paths;
        }
    }
}
